package java56_6;

public class Penuin extends Pet {

	public Penuin(String name, int age, String sex) {
		super(name, age, sex);
		// TODO 自动生成的构造函数存根
	}

	@Override
	public void print() {
		// System.out.println("这是一只可爱的企鹅");
		super.print();
	}

	@Override
	public void shout() {
		System.out.println(super.getName() + "在嘎嘎叫");
	}

	public void swim() {
		System.out.println(super.getName() + "在水中游泳！");
	}

	public static void show() {
		System.out.println("这是一群宠企鹅");
	}
}
